/*
 * @Author: lilongbiao guildwars@qq.com
 * @Date: 2024-03-24 22:13:57
 * @LastEditors: lilongbiao guildwars@qq.com
 * @LastEditTime: 2024-04-07 01:04:51
 * @FilePath: \work-vscode\vue3demo\demo\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import {$setToken} from './utils/request';

//刷新时检查 TOKEN
let token = sessionStorage.getItem('token');
if(token){
    $setToken(token);
}

createApp(App).use(Antd).use(store).use(router).mount("#app");